#ifndef CONFIG_H
#define CONFIG_H
#include <QString>
#include <QCryptographicHash>
//数据库连接
const QString DB_DRIVE="QMYSQL";
const QString HOST_NAME="127.0.0.1";
const int DB_PORT=3306;
const QString DB_USER_NAME="root";
const QString DB_PASSWORD="1234";
const QString DB_DATABASE_NAME="store_manage";

//user结构体
struct UserInfo
{
    int id;
    QString username;
    QString password;
    int auth;
};

//product结构体
struct ProductInfo
{
    int id;
    QString name;
    int nums;
    QString classify;
    double price;
    double weight;
    QString supplier;
    QString create_time;
    QString update_time;
    int user_id;
};


#endif // CONFIG_H
